#!/bin/sh
for dir in `ls -1 -d */`; do cd $dir; pdflatex main.tex; cd ..; done
